<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
    
</head>
<body>
    <script>
        


        // axios()
        // axios.get();

        //1. then
        // axios.get('https://api.xiaohigh.com/lol')
        // .then(res => {
        //     console.log(res);
        // })

        //2. async
        async function main(){
            let result = await axios.get('https://api.xiaohigh.com/lol');
            console.log(result);
        }
        main();

        //
    
    </script>
</body>
</html>